//
//  AttentionGrounpModel.m
//  PropertyMananger
//
//  Created by bh on 16/12/29.
//  Copyright © 2016年 BH. All rights reserved.
//

#import "AttentionGrounpModel.h"
#import "AttentionModel.h"

@implementation AttentionGrounpModel

+ (instancetype)getGroupsWithArray:(NSMutableArray*)dataArray groupTitle:(NSString*)title
{
    NSMutableArray *tempArray = [NSMutableArray array];
    AttentionGrounpModel *group = [[AttentionGrounpModel alloc] init];
    for (AttentionModel *model in dataArray)
    {
        NSString *header = [PinYinForObjc chineseConvertToPinYinHead:model.RealName];
        if ([header isEqualToString:title])
        {
            AttentionModel *followM = [[AttentionModel alloc] init];
//            followM.img_Url = @"";
//            followM.RealName = model.RealName;
//            followM.Duty = model.Duty;
//            followM.Tel = model.Tel;
            followM = model;
            [tempArray addObject:followM];
        }
    }
    group.groupTitle = title;
    group.follows = tempArray;
    return group;
}
@end
